package day2;

import java.util.Scanner;

public class Test13 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double discount = 8;
        System.out.print("请输入会员积分:");
        int integral = input.nextInt();
        if (integral >= 2000) discount--;
        if (integral >= 4000) discount--;
        if (integral >= 8000) discount--;
//        if(integral >= 8000) discount = .5;
//        else if(integral >= 4000) discount = .6;
//        else if(integral >= 2000) discount = .7;
        System.out.println("该会员的折扣是:" + discount * .1);
    }
}
